# -*- coding: utf-8 -*-
# @Time    : 2020/3/6 16:07
# @Author  : Weymouth
# @Email   : 261229090@qq.com
# @File    : hashlib_module.py
# @Software: PyCharm
# ---------------------------------------------------

import hashlib

# m = hashlib.md5()
# print(m)
#
# m.update('123456'.encode('utf8'))
# print(m.hexdigest())
#
# m2 = hashlib.md5()
#
# m2.update('hello worldabcd'.encode('utf8'))
# print(m2.hexdigest())

s = hashlib.sha256()
s.update('hello world'.encode('utf8'))
print(s.hexdigest())